package com.system.api.rbac.entity.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.yang.database.orm.entity.BaseModel;

/**
 * 用户角色关联表
 * @author: lslands
 * @version: 1.0
 * @create: 2024/5/19
 * @description:
 */
@Data
@Builder
@NoArgsConstructor
public class SysUserRoleRelation extends BaseModel {


    /**
     * 用户ID
     * @required
     */
    private Long userId;

    /**
     * 角色ID
     * @required
     */
    private Long roleId;



    public SysUserRoleRelation(Long userId, Long roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }
}